
<div class="container content">

    <div class="wrap-single-page">
	<div class="title">Contact Us</div>
	<div class="content-single-page">
	    <?php if (Yii::app()->user->hasFlash('contact')): ?>
    	    <div class="flash-success">
		    <?php echo Yii::app()->user->getFlash('contact'); ?>
    	    </div>
	    <?php else: ?>
    	    <div class="alert alert-info">
    		If you have business inquiries or other questions, please fill out the following form to contact us. Thank you.
    	    </div>

    	    <div class="contact-form">

		    <?php
		    $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
			'type' => 'horizontal',
			'clientOptions' => array(
			    'validateOnSubmit' => true,
			),
			'enableClientValidation' => true
		    ));
		    ?>

    		<div class="control-group">
    		    <div class="controls">Fields with <span class="required">*</span> are required.</div>    
    		</div>

		    <?php echo $form->errorSummary($model); ?>

		    <?php echo $form->textFieldRow($model, 'name', array('size' => 60, 'maxlength' => 128, 'class' => 'span5')); ?>
		    <?php echo $form->textFieldRow($model, 'email', array('size' => 60, 'maxlength' => 128, 'class' => 'span5')); ?>
		    <?php echo $form->textFieldRow($model, 'phone', array('size' => 60, 'maxlength' => 128, 'class' => 'span5')); ?>

		    <?php echo $form->textFieldRow($model, 'subject', array('size' => 60, 'maxlength' => 128, 'class' => 'span5')); ?>


		    <?php echo $form->textAreaRow($model, 'body', array('rows' => 6, 'cols' => 50, 'class' => 'span5', 'style' => 'width:370px')); ?>


		    <?php if (extension_loaded('gd')): ?>
			<div class="control-group">
			    <label class="control-label">Verify Code</label>
			    <div class="controls">
				<?php $this->widget('CCaptcha'); ?>
				<br/>
				<?php echo $form->textField($model, 'verifyCode'); ?>

				<p class="help-block">Please enter the letters as they are shown in the image above.
				    <br/>Letters are not case-sensitive.</p>
			    </div>
			</div>
		    <?php endif; ?>

    		<div class="form-actions">
    		    <input type="submit" value="Submit" class="btn btn-primary" name="send-message"/>
			<?php /*
			  <input type="reset" value="Reset" class="btn btn-danger" />
			 * 
			 */ ?>
    		</div>

		    <?php $this->endWidget(); ?>

    	    </div><!-- form -->

	    <?php endif; ?>
	</div>

    </div><!--box-man-->


</div><!--content-->